﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

namespace Commons
{
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class DbColumn : Attribute
    {
        private string columnID;

        public string ColumnID
        {
            get { return columnID; }
            set { columnID = value; }
        }

        private bool isKey;

        public bool IsKey
        {
            get { return isKey; }
            set { isKey = value; }
        }

        private bool isIdentity;

        public bool IsIdentity
        {
            get { return isIdentity; }
            set { isIdentity = value; }
        }

    }

    [AttributeUsage(AttributeTargets.Class)]
    public class DbTable : Attribute
    {
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

      
    }
}
